Fundamental Diagnostics for Two-Level Mixed Models: The SAS® Macro MIXED_DX
نویسندگان
چکیده
Multilevel modeling has become a common analytic technique across a variety of disciplines including medicine and the social and behavioral sciences. However, because many researchers who use multilevel modeling in their research do not report if the data were screened for potential violations of distributional assumptions and outliers, it is unclear if these diagnostic procedures are being conducted. Thus, in an effort to make the process of checking the assumptions for multilevel models easier for the applied researcher, this paper provides a SAS macro for conducting two-level linear model diagnostics, including examinations of residual normality, linearity, homogeneity of variance, and influential outliers. By utilizing data from PROC MIXED ODS tables, the macro produces box-and-whisker plots, summary tables of statistical output, histograms, and plots of residuals by predicted values. Macro outputs are produced for both level-1 and level-2 data. This paper provides a discussion about the distributional assumptions of mixed models, an example of the macro language, and results from an executed example of the macro. Information for downloading the complete macro is also provided.
منابع مشابه
An Intermediate Primer to Estimating Linear Multilevel Models using SAS PROC MIXED
This paper expands upon Bell et al.’s (2013) “A Multilevel Model Primer Using SAS PROC MIXED” in which we presented an overview of estimating two and three-level linear models via PROC MIXED. However, in our earlier paper, we, for the most part, relied on simple options available in PROC MIXED. In this paper, we present a more advanced look at common PROC MIXED options used in the analysis of s...
متن کامل191-2007: Model Selection in PROC MIXED—A User-Friendly SAS® Macro Application
A user-friendly SAS macro application to perform all possible model selection of fixed effects including quadratic and cross products within a user-specified subset range in the presence of random and repeated measures effects using SAS PROC MIXED is available. This macro application, ALLMIXED2 will complement the model selection option currently available in the SAS PROC REG for multiple linea...
متن کاملMIXED_FIT: A SAS Macro to Assess Model Fit and Adequacy for Two-Level Linear Models
As multilevel models (MLMs) are useful in understanding relationships existent in hierarchical data structures, these models have started to be used more frequently in research developed in social and health sciences. In order to draw meaningful conclusions from MLMs, researchers need to make sure that the model fits the data. Model fit, and thus, ultimately model selection can be assessed by e...
متن کامل255-2013: MIXED_FIT: A SAS® Macro to Assess Model Fit and Adequacy for Two-Level Linear Models
When estimating multilevel models it is important for researchers to make sure their models fit their data. However, examining model fit can be quite cumbersome. We have developed the macro MIXED_FIT to help researchers assess model fit in a simple yet comprehensive way. Specifically, this paper provides a SAS macro that incorporates changes in model fit statistics [i.e., -2 log likelihood (-2L...
متن کامل%COVTEST: A SAS Macro for Hypothesis Testing in Linear Mixed Effects Models via Parametric Bootstrap
Inference of variance components in linear mixed effect models (LMEs) is not always straightforward. I introduce and describe a flexible SAS ® macro (%COVTEST) that uses the likelihood ratio test (LRT) to test covariance parameters in LMEs by means of the parametric bootstrap. Users must supply the null and alternative models (as macro strings), and a data set name. The macro calculates the obs...
متن کامل